using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace RedPoint
{
    [RequireComponent(typeof(Button))]
    public class AddBtn : MonoBehaviour
    {
        public Config key;
        void Start()
        {
            GetComponent<Button>().onClick.AddListener(() =>
            {
                RedPointManager.Instance.SetCount(key.redPointKey, RedPointManager.Instance.GetCount(key.redPointKey) + 1);
            });
        }
    }
}
